﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="WebUserControl1.ascx.cs" Inherits="WebSendMail.WebUserControl1" %>


    <form runat="server">
    <div id="UserAccess">
        <table style="width:100%">
    <tr>
        <td><asp:Label ID="lMail" Text="Indirizzo Email" runat="server"></asp:Label></td>
        <td><asp:TextBox ID="tMail" runat="server"></asp:TextBox></td>
    </tr>
    <tr>
        <td><asp:Label ID="lPassword" Text="Password" runat="server"></asp:Label></td>
        <td><asp:TextBox ID="tPassword" runat="server" TextMode="Password"></asp:TextBox></td>
    </tr>
    <tr>
        <td><asp:Label ID="lSmtp" runat="server" Text="Smtp"></asp:Label></td>
        <td><asp:TextBox ID="tSmtp" runat="server"></asp:TextBox></td>
    </tr>
    </table>
    </div>
    
    <div id="UploadFile">
        <table>
        <tr>
            <td><asp:FileUpload ID="FileUploadAttachment" runat="server" /></td>
        </tr>
        <tr>
            <td><asp:Button Text="Carica" runat="server" ID="BtnUpload" OnClick="BtnUpload_Click" /></td>
        </tr>
            <tr>
                <td colspan="2"><asp:Label runat="server" id="StatusLabel" text="Upload status: " />
                </td>
            </tr>
            <tr>
                <td>
                    <asp:CheckBoxList ID="Att" runat="server">
                    </asp:CheckBoxList>
                </td>
            </tr>
            </table>
    </div>
        <div style="clear:both">
            
        </div>
        <div id="mail">
            <table>
                <tr>
            <td><asp:Label ID="Label1" runat="server" Text="Oggeto"></asp:Label></td>
            <td><asp:TextBox ID="TextObj" runat="server"></asp:TextBox></td>
                </tr>
                <tr>
            <td><asp:Label ID="Label2" runat="server" Text="Testo"></asp:Label></td>
            <td>
                <asp:TextBox ID="TextMail" runat="server" TextMode="MultiLine" Rows="5"></asp:TextBox>
                </td>    
                </tr>
                <tr>
            <td><asp:FileUpload ID="FileUploadTo" runat="server" /></td>
            <td><asp:Button ID="Carica" runat="server" OnClick="Carica_Click" Text="CaricaFile"/></td>
                    <td><asp:TextBox ID="TextTo" TextMode="MultiLine" Rows="10" runat="server" ReadOnly="true"></asp:TextBox></td>
                    </tr>
                <tr>
            <td><asp:Button ID="Button1" runat="server" Text="Button" OnClick="Button1_Click"/></td>
                    </tr>
                </table>
        </div>
    </form>